package com.example.websocket.websocket.pojo;


/**
 * @program: finalwork
 * @description:
 * @author: fks
 * @create: 2025-03-05 17:51
 **/

public class UserThreadLocal {
    private static final ThreadLocal<User> LOCAL = new ThreadLocal<>();
    public static void put(User user) {
        LOCAL.set(user);
    }
    public static User get() {
        return LOCAL.get();
    }
    public static void remove() {
        LOCAL.remove();
    }
}
